package com.wanmait.baohan.pojo;

import java.io.Serializable;
import java.util.Date;

public class Contract implements Serializable {
    private Integer id;

    /**
	* 所属供应商（企业简称，注册地址，法定代表人    自动出现）
	*/
    //private Integer supplierId;
    private Supplier supplier;
    /**
	* 委托人id（委托人基本信息自动出现）
	*/
    //private Integer agentId;
    private Agent agent;
    /**
	* 业务联系人id（联系人基本信息自动出现）
	*/
    //private Integer businessContactId;
    private BusinessContact businessContact;
    /**
	* 开户行id（开户行基本信息自动出现）
	*/
   // private Integer accountId;
    private Account account;
    /**
	* 产品id（品种品类来源流向自动出现）
	*/
    //private Integer demandId;
    private Demand demand;
    /**
	* 备注
	*/
    private Integer remarks;

    /**
	* 0删除   1未删
	*/
    private Integer enable;

    /**
	* 添加人
	*/
    private Integer addStaffId;

    /**
	* 添加时间
	*/
    private Date addTime;

    /**
	* 修改人
	*/
    private Integer updateStaffId;

    /**
	* 修改时间
	*/
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Agent getAgent() {
        return agent;
    }

    public void setAgent(Agent agent) {
        this.agent = agent;
    }

    public BusinessContact getBusinessContact() {
        return businessContact;
    }

    public void setBusinessContact(BusinessContact businessContact) {
        this.businessContact = businessContact;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Demand getDemand() {
        return demand;
    }

    public void setDemand(Demand demand) {
        this.demand = demand;
    }
/*   public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Integer getBusinessContactId() {
        return businessContactId;
    }

    public void setBusinessContactId(Integer businessContactId) {
        this.businessContactId = businessContactId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Integer getDemandId() {
        return demandId;
    }

    public void setDemandId(Integer demandId) {
        this.demandId = demandId;
    }*/

    public Integer getRemarks() {
        return remarks;
    }

    public void setRemarks(Integer remarks) {
        this.remarks = remarks;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getAddStaffId() {
        return addStaffId;
    }

    public void setAddStaffId(Integer addStaffId) {
        this.addStaffId = addStaffId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getUpdateStaffId() {
        return updateStaffId;
    }

    public void setUpdateStaffId(Integer updateStaffId) {
        this.updateStaffId = updateStaffId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", supplierId=").append(supplier.getId());
        sb.append(", agentId=").append(agent.getId());
        sb.append(", businessContactId=").append(businessContact.getId());
        sb.append(", accountId=").append(account.getId());
        sb.append(", demandId=").append(demand.getId());
        sb.append(", remarks=").append(remarks);
        sb.append(", enable=").append(enable);
        sb.append(", addStaffId=").append(addStaffId);
        sb.append(", addTime=").append(addTime);
        sb.append(", updateStaffId=").append(updateStaffId);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}